package com.tangyuan.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tangyuan.common.result.Result;
import com.tangyuan.model.User;
import com.tangyuan.model.UserLike;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Description: user
 * @Author: jeecg-boot
 * @Date:   2024-03-13
 * @Version: V1.0
 */
public interface IUserService extends IService<User> {

    User getUserById(Long userId);

    boolean setUserById(String key,Object value,String token);

    UserLike getUserLikeByUserId(Long userId);

    void deleteUserVideoCollectionByVideoId(Long videoId);

    void deleteUserActionByVideoId(Long videoId);

    List<User> getUserListByLastSql(String lastSql);

    Result saveRobotNum(String param);

    Map<Long, User> getUserListById(List<Long> userIds);
}
